package org.xdemo.example.remoteUI.entity;

import java.util.ArrayList;

/**
 * Created by kz on 2017/8/18.
 */
public class tOneGroup {

    public   ArrayList<tOneAddress> addresses ;

    public ArrayList<tOneAddress> getAddresses() {
        return addresses;
    }

    public void setAddresses(ArrayList<tOneAddress> addresses) {
        this.addresses = addresses;
    }

    public tOneGroup(){
        addresses = new ArrayList<tOneAddress>();
    }

    public int addrCount() {
        return addresses.size();
    }

    public void creatNewList(int count,int startind){

        for (int i = 0; i < count; i++) {
            addresses.add(new tOneAddress(startind++));
        }
    }


}
